﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using VTESCore;

using Microsoft.Xna.Framework.Content.Pipeline.Serialization.Compiler;

namespace VTESCustomContentPipeline
{
	[ContentTypeWriter]
	public class LibraryCardContentWriter : ContentTypeWriter<LibraryCard>
	{
		protected override void Write( ContentWriter output, LibraryCard value )
		{
			output.Write( value.Artist );
			output.Write( value.Banned );
			output.Write( value.BloodCost );
			output.Write( value.BurnOption );			
			output.Write( value.CardArtPath );
			output.Write( value.CardText );
			output.WriteObject( value.CardTypes );
			output.WriteObject( value.ClanRequirements );
			output.Write( value.ConvictionCost );
			output.WriteObject( value.DisciplineRequirements );
			output.Write( value.FlavourText );
			output.Write( value.Name );
			output.Write( value.OtherRequirements );
			output.Write( value.PoolCost );
			output.WriteObject( value.Set );
		}

		public override string GetRuntimeType( Microsoft.Xna.Framework.TargetPlatform targetPlatform )
		{
			return "VTESCore.LibraryCard, VTESCore";
		}

		public override string GetRuntimeReader( Microsoft.Xna.Framework.TargetPlatform targetPlatform )
		{
			return "VTESCustomContentReaders.LibraryCardContentReader, VTESCustomContentReaders, Version=1.0.0.0, Culture=neutral";
		}
	}
}
